<?php

return CMap::mergeArray(
	require(dirname(__FILE__).'/main.php'),
	array(
		'components' => [
			'fixture' => [
				'class' => 'system.test.CDbFixtureManager',
			],
			/* uncomment the following to provide test database connection
			'db' => [
				'connectionString'=>'DSN for test database',
			],
			*/
            'log' => [
                'class' => 'CLogRouter',
                'routes' => [
                    [
                        'class'=>'CFileLogRoute',
                        'levels'=>'trace, info',
                        // 'categories'=>'system.*',
                    ],
                    [
                        'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                        // Access is restricted by default to the localhost
                        //'ipFilters'=>array('127.0.0.1','192.168.1.*', '88.23.23.0/24', '*'),
                    ],
                    /*[
                        'class'=>'CEmailLogRoute',
                        'levels'=>'error, warning',
                        'emails'=>'admin@example.com',
                    ],*/
                ],
            ],
		],
		'modules' => [
			'gii' => [
				'class' => 'system.gii.GiiModule',
				'password' => 'demo',
				// 'ipFilters'=>array(...IP 列表...),
				// 'newFileMode'=>0666,
				// 'newDirMode'=>0777,
			],
		],
	)
);
